var accounting = require('accounting')
module.exports = {
  phoneFilter: function (val) {
    return val.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2')
  },
  parseInt: function (val) {
    console.log(typeof val)
    return parseInt(val)
  },
  toFixed: function (val) {
    return accounting.toFixed(val,2)
  },
  urldec: function (val) {
    return unescape(val)
  }
}
